import TechnicalImage from "E:\\env\\api-blog\\src\\images\\technical.jpg" const divStyle = { width: '88%', height: '800px', backgroundImage: `url(${TechnicalImage})`, backgroundSize: 'cover' <---- This is important };